package top.withwings.bonus.bonus.pojo;


import top.withwings.bonus.bonus.pojo.bonus.rule.ExpirationCloseBonusRule;
import top.withwings.bonus.bonus.pojo.bonus.rule.HighPriceBonusRule;

public class GoodWithRule{

    private int id;

    private String fullName;

    private String code;

    private boolean enabled;

    private HighPriceBonusRule highPriceBonusRule;

    private ExpirationCloseBonusRule expirationCloseBonusRule;

    public GoodWithRule(Good good,HighPriceBonusRule highPriceBonusRule,ExpirationCloseBonusRule expirationCloseBonusRule){

        this.id = good.getId();
        this.fullName= good.getFullName();
        this.code=good.getCode();
        this.enabled=good.isEnabled();
        this.expirationCloseBonusRule= expirationCloseBonusRule;
        this.highPriceBonusRule = highPriceBonusRule;
    }

    public int getId() {
        return id;
    }

    public String getFullName() {
        return fullName;
    }

    public String getCode() {
        return code;
    }

    public HighPriceBonusRule getHighPriceBonusRule() {
        return highPriceBonusRule;
    }

    public ExpirationCloseBonusRule getExpirationCloseBonusRule() {
        return expirationCloseBonusRule;
    }

    public boolean isEnabled() {
        return enabled;
    }
}
